<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title> Bank withdraw</title>
<link rel="stylesheet" type="text/css"
	href="bootstrap/css/bootstrap.css" />
<link rel="stylesheet" type="text/css"
	href="bootstrap/css/bootstrap-responsive.css" />

</head>
<body>

	<div class="container-fluid">
		<div class="row-fluid">
			<div class="span12 innerbody">

				<div>
					<h1>
						<i class="icon-pencil"></i>&nbsp;Enter Bank withdraw Details
					</h1>

				</div>
				<div class="row-fluid">
					<div id="content_main">
						<form:form id="form" name="form_withdraw" method="post"
							action="/ChitFund/savewithdraw.htm">
							<table border="0">
								<tr>
								<td><input type="hidden" name="withdrawId" value="${withdraw.withdrawId}" /></td>
								</tr>
								<tr>
									<td><form:label path="withdrawCode">withdrawDate</form:label></td>
									<td><form:input  path="withdrawCode" value="${withdraw.withdrawDate}" /></td>
								</tr>
								<tr>
									<td><form:label path="withdrawCode">withdrawAmount</form:label></td>
									<td><form:input  path="withdrawName" value="${withdraw.withdrawAmount}" /></td>
								</tr>
					
								<tr>
									<td><form:label path="withdrawCode">bank</form:label></td>
									<td><form:input  path="mobileNo" value="${withdraw.bank}" /></td>
								</tr>
									<tr>
									<td><form:label path="withdrawCode">accountNo</form:label></td>
									<td><form:input  path="phoneNo" value="${withdraw.accountNo}" /></td>
								</tr>
								<tr>
									<td><form:label path="withdrawCode">withdraworName</form:label></td>
									<td><form:input  path="mobileNo" value="${withdraw.withdraworName}" /></td>
								</tr>
								<tr>
									<td><form:label path="withdrawCode">comment</form:label></td>
									<td><form:input  path="mobileNo" value="${withdraw.comment}" /></td>
								</tr>

							</table>
							<div class="form-btn">
								<input type="submit" name="Save" id="Save" value="Save"
									class="btn btn-large" /> <input type="reset" name="Clear"
									id="Clear" value="Reset" class="btn btn-large" />

							</div>
						</form:form>
					</div>
					<div class="span11">

						<h3>withdraws</h3>

						<c:if test="${!empty withdrawList}">
							<table id="tblData"
								class="table table-bordered table-striped table-hover">
								<thead>
									<tr>
										<th>withdrawId</th>
										<th>withdrawDate</th>
										<th>withdrawAmount</th>
										<th>bank</th>
										<th>accountNo</th>
										<th>withdraworName</th>
									</tr>
								</thead>
								<tbody>

									<c:forEach items="${withdrawList}" var="withdraw">
										<tr>
											<td>${withdraw.withdrawId}</td>
											<td>${withdraw.withdrawDate}</td>
											<td>${withdraw.withdrawAmount}</td>
											<td>${withdraw.bank}</td>
											<td>${withdraw.accountNo}</td>
											<td>${withdraw.withdraworName}</td>
										</tr>
									</c:forEach>
								</tbody>
							</table>
						</c:if>

						<c:if test="${empty withdrawList }">
							<c:out value="No withdraw">
							</c:out>
						</c:if>
					</div>
				</div>
			</div>
		</div>
	</div>

	<script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
	<script type="text/javascript" src="bootstrap/js/bootstrap.js"></script>

</body>
</html>